package com.sdy.dcsb.biz.service.impl;

import com.sdy.dcsb.biz.mapper.EsbLogMapper;
import com.sdy.dcsb.biz.model.EsbLog;
import com.sdy.dcsb.biz.model.EsbLogJoint;
import com.sdy.dcsb.biz.service.EsbLogService;
import com.sdy.mvc.service.impl.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * <p>
 * 服务日志表 服务实现类
 * </p>
 *
 * @author fb
 * @since 2019-10-11
 */
@Slf4j
@Service
public class EsbLogServiceImpl extends BaseServiceImpl<EsbLog> implements EsbLogService {
    @Autowired
    private EsbLogMapper esbLogMapper;
    @Autowired
    private EsbLogService esbLogService;

    @Override
    public List<EsbLogJoint> findServiceLogList(String requestTimeBegin, String requestTimeEnd, String type, String message,
                                         String status, String systemName, Integer current, Integer size) {
        return esbLogMapper.findServiceLogList(requestTimeBegin, requestTimeEnd, type, message,
                status, systemName, current, size);
    }

    @Override
    public List<EsbLogJoint> findServiceLogListCount(String requestTimeBegin, String requestTimeEnd, String type, String message,
                                              String status, String systemName) {
        return esbLogMapper.findServiceLogListCount(requestTimeBegin, requestTimeEnd, type, message,
                status, systemName);
    }
}
